package top.fzqblog.clazz

/**
 * Created by 抽离 on 2017/8/3 0003.
 */
class KotlinClass(val id: Int?, val name: String?) {

    init {
        System.out.println("init：==========")
    }

    override fun toString(): String {
        return "id:" + id + "name:" + name
    }
}

fun main(args: Array<String>) {
    val kt = KotlinClass(1, "2")
    val kotlinClass = KotlinClass(null, null)
    System.out.println("kt：" + kt)
    System.out.println("kotlinClass：" + kotlinClass)
}